package com.inspection.dao;

import com.inspection.entity.InspectionEventDeptRelationDO;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface InspectionEventDeptRelationDao extends JpaRepository<InspectionEventDeptRelationDO,Long> {

    List<InspectionEventDeptRelationDO> findByInspectionEventIdIn(Iterable ids);


    @Transactional
    void deleteByInspectionEventId(Long eventId);


}
